package com.inspur.his.service.impl;

import com.inspur.his.mapper.BingAnMapper;
import com.inspur.his.pojo.Bing;

import com.inspur.his.service.BingAnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service("BingAnService")
public class BingAnServiceImpl implements BingAnService {
    @Autowired
    private BingAnMapper binganMapper;

    public void setBingAnMapper(BingAnMapper binganMapper) {
        this.binganMapper = binganMapper;
    }

    //条件查询+分页
    @Override
    public List<Bing> binganInList(HashMap map) {
        return binganMapper.binganInList(map);
    }

    @Override
    public void save(Bing bing) {
        binganMapper.save(bing);
    }

    @Override
    public Bing findById(Bing bing) {
        return binganMapper.findById(bing);
    }

    @Override
    public void binganUpdate(Bing bing) {
        binganMapper.binganUpdate(bing);
    }

    @Override
    public void delete(Bing bing) {
        binganMapper.delete(bing);
    }


}